package net.minecraft.src;
import java.util.Random;
import java.util.*;

public class mod_LEM extends BaseMod
{
	public static Block HematiteOre = new BlockHematiteOre(123, 0).setHardness(5.0F).setResistance(1.0F).setLightValue(0.0F).setBlockName("Hematite Ore");
	public static Item HematiteGem = (new Item(383).setItemName("Hematite Gem"));
	public static Block HematiteBlock = new BlockHematiteBlock(124, 0).setHardness(5.0F).setResistance(1.0F).setLightValue(0.0F).setBlockName("Hematite Block");
	
	public  mod_LEM()
	{
		ModLoader.RegisterBlock(HematiteOre);
		HematiteOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/PPH/blocks/hematite ore.png");
		ModLoader.AddName(HematiteOre, "Emerald Ore");
		ModLoader.AddSmelting(HematiteOre.blockID, new ItemStack(HematiteGem, 1));
		//Hematite Ore
		
		HematiteGem.iconIndex = ModLoader.addOverride("/gui/items.png", "/PPH/items/hematite gem.png");
		ModLoader.AddName(HematiteGem, "Hematite Gem");
		//Hematite Gem
		
		ModLoader.RegisterBlock(HematiteBlock);
		HematiteBlock.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/PPH/blocks/hematite block.png");
		ModLoader.AddName(HematiteBlock, "Hematite Block");
		ModLoader.AddRecipe(new ItemStack(HematiteBlock, 1), new Object[]
		{"SSS", "SSS", "SSS", Character.valueOf('S'), HematiteGem});
		//Hematite Block
	}
	
	
	
	public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
    {
        for(int i = 0; i < 43; i++)
        {
            int randPosX = chunkX + rand.nextInt(16);
            int randPosY = rand.nextInt(45);
            int randPosZ = chunkZ + rand.nextInt(16);
            (new WorldGenMinable(mod_LEM.HematiteOre.blockID, 10)).generate(world, rand, randPosX, randPosY, randPosZ);
        }
        
     }
    
	
	
	@Override
	public String getVersion() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public void load() {
		// TODO Auto-generated method stub
		
	}}
	
		